Get rid of the rest of variables exported from libgtk
authorTor Lillqvist <tml@iki.fi>
Wed, 8 Sep 2010 17:33:30 +0000 (20:33 +0300)
committerTor Lillqvist <tml@iki.fi>
Wed, 8 Sep 2010 18:31:34 +0000 (21:31 +0300)
commit87141cf4c8f6d8cb3bfa1745e0dafa582fd0431e
treef1a61864aadbaa0f4dd503aabe1e5c638eaa471f
parent801875b8050e7113249943000276f72ffec07e6e
Get rid of the rest of variables exported from libgtk

Especially the gtk_*_type ones in gtktexttypes.h were mentioned in
gtk.symbols presumably by accident. That header isn't even installed,
so no way can they be supposed to be public.

gtk_text_attr_appearance_type is from the installed but "semi-private"
gtktextlayout.h, so drop that one too from gtk.symbols for now.

The use of gtk_text_unknown_char_utf8 is bit of a mess. Code in a few
files knew implicitly that it is three bytes. Define a symbolic name
for the length of it instead. Add an exported function
gtk_text_unknown_char_utf8_gtk_tests_only() that returns a pointer to
it just for the sake of gtk/tests/textbuffer.c. Prefix the variable
with an underscore.

I doubt the usefulness of the test_utf8() in textbuffer.c. If it could
be dropped, gtk_text_unknown_char_utf8_gtk_tests_only() could be
dropped, too.
gtk/gtk.symbols
gtk/gtktextbtree.c
gtk/gtktextchild.c
gtk/gtktextlayout.c
gtk/gtktextlayout.h
gtk/gtktexttypes.c
gtk/gtktexttypes.h
gtk/tests/textbuffer.c